package com.fengxing.ams.web.facade.mouble.realtime;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "zyt_realtime_major")
public class MajorVO2 {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	private String major_id;
	private String major_name;
	private Integer plan_num;
	private Integer yuji1bi1luquzuidifen;
	private Integer apply_num;
	private String xuefei;
	private String location;
	private String remark;
	@ManyToOne(cascade = { CascadeType.ALL }, optional = false)
	@JoinColumn(name = "school_id")
	private SchoolVO2 schoolVO2;
	@Transient
	private List<RealtimeStudentVO> students = new ArrayList<RealtimeStudentVO> ();
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getMajor_id() {
		return major_id;
	}
	public void setMajor_id(String major_id) {
		this.major_id = major_id;
	}
	public String getMajor_name() {
		return major_name;
	}
	public void setMajor_name(String major_name) {
		this.major_name = major_name;
	}
	public Integer getPlan_num() {
		return plan_num;
	}
	public void setPlan_num(Integer plan_num) {
		this.plan_num = plan_num;
	}
	public Integer getYuji1bi1luquzuidifen() {
		return yuji1bi1luquzuidifen;
	}
	public void setYuji1bi1luquzuidifen(Integer yuji1bi1luquzuidifen) {
		this.yuji1bi1luquzuidifen = yuji1bi1luquzuidifen;
	}
	public Integer getApply_num() {
		return apply_num;
	}
	public void setApply_num(Integer apply_num) {
		this.apply_num = apply_num;
	}
	public String getXuefei() {
		return xuefei;
	}
	public void setXuefei(String xuefei) {
		this.xuefei = xuefei;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public SchoolVO2 getSchoolVO2() {
		return schoolVO2;
	}
	public void setSchoolVO2(SchoolVO2 schoolVO2) {
		this.schoolVO2 = schoolVO2;
	}
	public List<RealtimeStudentVO> getStudents() {
		return students;
	}
	public void setStudents(List<RealtimeStudentVO> students) {
		this.students = students;
	}
	
	
}
